package morpion;

import neurones.Param;

public class Coup {
	
	private double[][] dumpReseau;
	private double theorique;
	private int coup;
	
	public static double calcGain(double gain, double old_gain, int position)
	{
		if (position == 0) return gain;
		//System.out.println("gain : "+gain+ " heuristique : "+old_gain+" result : "+((1 - Param.taux_appr) * old_gain + Param.taux_appr * (Param.taux_prop_gain * gain)));
		return (1 - Param.taux_appr) * old_gain + Param.taux_appr * (Param.taux_prop_gain * gain);		
	}
	
	
	public Coup(double[][] dumpReseau, int coup, double theorique)
	{
		this.dumpReseau = dumpReseau;		
		this.setCoup(coup);
		this.theorique = theorique;
	}
	
	public double getEstimationScore()
	{
		return theorique;
	}


	public void setCoup(int coup) {
		this.coup = coup;
	}


	public int getCoup() {
		return coup;
	}


	public void setDumpReseau(double[][] dumpReseau) {
		this.dumpReseau = dumpReseau;
	}


	public double[][] getDumpReseau() {
		return dumpReseau;
	}
	
	
	
	/*
	 * 123
	 * 456
	 * 789
	 */

}
